<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
          integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
            integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
            crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
            integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
            crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
            integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
            crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
    <div class="col">
        <form action="/filterRAM/" method="post">
            {% csrf_token %}
            <table class="table table-hover">
                <tbody>
                <tr>
                    <th>品牌</th>
                    <td>
                        <select class="custom-select" name="Brand">
                            <option selected value="">选择品牌</option>
                            <option value="英睿达">英睿达</option>
                            <option value="影驰">影驰</option>
                            <option value="阿斯加特">阿斯加特</option>
                            <option value="科赋">科赋</option>
                            <option value="海盗船">海盗船</option>
                            <option value="瑞势">瑞势</option>
                            <option value="芝奇">芝奇</option>
                            <option value="金泰克">金泰克</option>
                            <option value="金邦科技">金邦科技</option>
                            <option value="特科芯">特科芯</option>
                            <option value="金士顿">金士顿</option>
                            <option value="威刚">威刚</option>
                            <option value="宇瞻">宇瞻</option>
                            <option value="三星">三星</option>
                            <option value="光威">光威</option>
                            <option value="现代">现代</option>
                            <option value="创见">创见</option>
                            <option value="十铨科技">十铨科技</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>适用平台</th>
                    <td>
                        <select class="custom-select" name="Platform">
                            <option selected value="">选择平台</option>
                            <option value="台式机">台式机</option>
                            <option value="笔记本">笔记本</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>容量描述</th>
                    <td>
                        <select class="custom-select" name="Capacity">
                            <option selected value="">选择容量描述</option>
                            <option value="单条（32GB）">32GB</option>
                            <option value="单条（16GB）">16GB</option>
                            <option value="单条（8GB）">8GB</option>
                            <option value="单条（4GB）">4GB</option>
                            <option value="单条（2GB）">2GB</option>
                            <option value="套装（2×32GB）">32GBx2</option>
                            <option value="套装（4×16GB）">16GBx4</option>
                            <option value="套装（2×16GB）">16GBx2</option>
                            <option value="套装（4×8GB）">8GB×4</option>
                            <option value="套装（2×8GB）">8GB×2</option>
                            <option value="套装（4×4GB）">4GB×4</option>
                            <option value="套装（2×4GB）">4GB×2</option>
                            <option value="套装（2×2GB）">2GB×2</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>内存类型</th>
                    <td>
                        <select class="custom-select" name="Type">
                            <option selected value="">选择内存类型</option>
                            <option value="DDR5">DDR5</option>
                            <option value="DDR4">DDR4</option>
                            <option value="DDR3">DDR3</option>
                            <option value="DDR2">DDR2</option>
                        </select>
                    </td>
                </tr>
                </tbody>
                <tr>
                    <td></td>
                    <th>
                        <button type="submit" class="btn btn-primary">筛选</button>
                    </th>
                </tr>

            </table>
        </form>
    </div>
    <div class="col">
        {% for case in cases %}
        <div class="card">
            <div class="card-body">
                <h5 class="card-title">{{case.Name}}</h5>
                <p class="card-text">适用平台:{{case.Platform}}</p>
                <p class="card-text">容量描述:{{case.Capacity}}</p>
                <p class="card-text">内存类型:{{case.Type}}</p>
                <p class="card-text">价格:￥{{case.Price}}</p>
                <div class="btn-group" role="group" aria-label="Basic example">
                    <form action="/configReturnRAM/" method="post">
                        {% csrf_token %}
                        <input name="id" hidden="hidden" value="{{case.Name}}">
                        <button type="submit" class="btn btn-primary">添加到配置单</button>
                    </form>
                    <form action="/moreInfoRAM/" method="post">
                        {% csrf_token %}
                        <input name="id" hidden="hidden" value="{{case.Name}}">
                        <button type="submit" class="btn btn-primary">详细信息</button>
                    </form>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
</body>
</html>